/* 
	@author Jelena Ilic
	@mail   jelenailic.sk@gmail.com
	@date   Summer 2014
*/
#include "SPcUserTrackInformation.hh"


//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

SPcUserTrackInformation::SPcUserTrackInformation(): 
		fStatus(active),
		fReflections(0),
		fForcedraw(false),
		fExitFlag(false)
{}

//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

SPcUserTrackInformation::~SPcUserTrackInformation() {}

//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

void SPcUserTrackInformation::AddTrackStatusFlag(int s)
{
	if(s&active) //track is now active
		fStatus&=~inactive; //remove any flags indicating it is inactive
	else if(s&inactive) //track is now inactive
		fStatus&=~active; //remove any flags indicating it is active
	fStatus|=s; //add new flags
}
